import request from "@/utils/request";

export function listData(params) {
  return request({
    url: "/task/module",
    method: "get",
    params
  });
}

export function postAddData(form) {
  return request({
    url: `/task/module`,
    method: "post",
    data: form
  });
}

export function putEditData(id, form) {
  return request({
    url: `/task/module/${id}`,
    method: "put",
    data: form
  });
}

export function deleteData(form) {
  return request({
    url: `/task/module`,
    method: "delete",
    data: form
  });
}
